
	<!-- THIS IS THE TITLE HEADER-->
      <div class="top-bar"> 
        <h1>Roles - <?php echo $_SESSION['name'];?></h1>
        <div class="breadcrumbs"><a href="../../index.php">Home</a> / 
								 <a href="../index.php">Management</a> / 
								 <a href="c_maintenance.php">Maintenance</a> / 
								 <a href="c_maintenance_users.php?view=list">Users</a> / 
								 Edit</div>
	  </div>
	<!-- ENDS TITLE HEADER-->
	
	
	<!-- YOUR CONTENT SECTION BEGINS HERE-->
	
	<p>&nbsp </p>
	
	 <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> <img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
		 <form action="c_maintenance_users.php" method="get">
			<table class="listing form" cellpadding="0" cellspacing="0">
			  <tr>
				<th class="full" colspan="2">Edit</th>
			  </tr>
			  <tr>
				<td class="first" width="172"><strong>Username</strong></td>
				<td class="last"><input type="text" class="text" name="save_user" value="<?php echo $current_user[0]; ?>"></td>
			  </tr>
			  <tr>
				<td class="first" width="172"><strong>Full Name</strong></td>
				<td class="last"><input type="text" class="text" name="full_name" value="<?php echo $current_user[1]; ?>"></td>
			  </tr>
			  <tr>
				<td class="first" width="172"><strong>Password</strong></td>
				<td class="last"><input type="password" class="text" name="pass_word" value="<?php echo $current_user[2]; ?>"></td>
			  </tr>
			  <tr>
				<td class="first" width="172"><strong>Enabled</strong></td>
				<td class="last">
					<select class="select-small" name="enabled">
					  <option <?php if($current_user[3]==1)
										echo "selected";
							  ?>  value="1">Yes</option>
					  <option <?php if($current_user[3]==0)
										echo "selected";
							  ?> value="0">No</option>
					</select> 					
				</td>
			  </tr>
			  <tr>
				<td class="first" width="172"><strong>Role</strong></td>
				<td class="last">
					<select class="select" name="role">
					<?php
						for($i=0;$i <= sizeof($this->data)-1;$i++){
							echo "<option value=\"".$this->data[$i][0]."\"";
							if ($this->data[$i][0] == $current_user[4])
								echo " selected ";
							echo ">".$this->data[$i][1]."</option>\n";
						}
					?>
					</select> 					
				</td>
			  </tr>
			  <tr class="bg">
				<td class="first"> &nbsp </td>
				<td class="last"><input type="submit" value="Save Changes" />&nbsp <input type="button" value="Cancel" onclick="goBack();"/></td>
			  </tr>
			</table>
			<p>&nbsp;</p>
		</form>
	  </div>
	
	
	<!-- YOUR CONTENT SECTION ENDS HERE-->

